package com.noble.meether.chat.ui.agora.act.bean;

import com.noble.library.base.bean.BaseData;

import org.json.JSONObject;

/**
 * 聊天状态：更新付费信息
 * Created by Su on 2017/4/12.
 */
public class ChatStatus extends BaseData {

    private int doLeave;        // 剩余钻石数
    private long secondLeave;   // 剩余时间 单位：s

    @Override
    public void parseJson(String jsonStr) {
        JSONObject jsonObject = getJsonObject(jsonStr);

        this.setDoLeave(jsonObject.optInt("DoNow"));
        this.setSecondLeave(jsonObject.optLong("CountDown"));
    }

    public int getDoLeave() {
        return doLeave;
    }

    public void setDoLeave(int doLeave) {
        this.doLeave = doLeave;
    }

    public long getSecondLeave() {
        return secondLeave;
    }

    public void setSecondLeave(long secondLeave) {
        this.secondLeave = secondLeave;
    }
}
